package com.leyou.api.controller;

import com.leyou.pojo.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@FeignClient("user-service")
public interface FeignController {
    @GetMapping("/info")
    public UserDto queryUserByNameAndPsw(@RequestParam(value = "username") String username,
                                         @RequestParam(value = "password") String password);
}
